<?php

use Drupal\shusy_team_stats\Entity\ShusyTeamStats;

function shusy_team_stats_shusy_team_stats_add_page() {
  $e = new ShusyTeamStats();
  module_load_include('inc', 'shusy_team_stats', 'shusy_team_stats.forms');
  return drupal_get_form('shusy_team_stats_shusy_team_stats_entity_form', $e, 'add');
}

function shusy_team_stats_shusy_team_stats_view_page(ShusyTeamStats $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_team_stats_shusy_team_stats_edit_page(ShusyTeamStats $e) {
  module_load_include('inc', 'shusy_team_stats', 'shusy_team_stats.forms');
  return drupal_get_form('shusy_team_stats_shusy_team_stats_entity_form', $e, 'edit');
}

function shusy_team_stats_shusy_team_stats_delete_page(ShusyTeamStats $e) {
  module_load_include('inc', 'shusy_team_stats', 'shusy_team_stats.forms');
  return drupal_get_form('shusy_team_stats_shusy_team_stats_delete_form', $e);
}

